const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    userId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'User'
    },
    userName: {
        type: String
    },
    postalCode: {
        type: String
    },
    provinceName: {
        type: String
    },
    cityName: {
        type: String
    },
    countryName: {
        type: String
    },
    detailInfo: {
        type: String
    },
    nationalCode: {
        type: String
    },
    telNumber: {
        type: String
    }
})

module.exports = mongoose.model('UserAddress', schema)